{template 'header'}
<style>
	body{
	font:{$_W['styles']['fontsize']} {$_W['styles']['fontfamily']};
	color:{$_W['styles']['fontcolor']};
	padding:0;
	margin:0;
	background-image:url('{if !empty($_W['styles']['indexbgimg'])}{$_W['styles']['indexbgimg']}{/if}');
	background-size:cover;
	background-color:{if empty($_W['styles']['indexbgcolor'])}#E9E9E9{else}{$_W['styles']['indexbgcolor']}{/if};
	{$_W['styles']['indexbgextra']}
	}
	a{color:{$_W['styles']['linkcolor']}; text-decoration:none;}
	{$_W['styles']['css']}
	.box{width:100%; margin-top:10px;}
	.box .box-item{float:left; display:block; text-align:center; text-decoration:none; outline:none; width:47%; height:120px; color:#333; background:#FFF; margin:0 0 2% 2%; padding:2% 10px; overflow:hidden; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);}
	.box .box-item i{display:inline-block;width:80px;height:80px;line-height:80px;font-size:40px;color:#666; background:#EEE; overflow: hidden; border:2px #FFF solid;}
	.box .box-item span{color:{$_W['styles']['fontnavcolor']};display:block; width:90%; margin:0 5%; height:20px; line-height:20px; overflow:hidden; font-size:14px;}
	.box ul li{background-color:#FFF;padding:0 10px;margin:1%;display: inline-block;height:45px;width:100%;}
	.box ul li a{text-decoration: none;}
	.box .title{color:#333;}
	.box .createtime{color:#999;font-size:12px}
</style>
<script>
	require(['jquery'],function($){
		$('i').addClass("img-circle");
	});
</script>
<div class="box clearfix">
	{data func="site_navs" item="row"}
	{$row['html']}
	{/data}

	<!-- 该分类下文章-start -->
	{if $_GPC['c'] == 'site' && $_GPC['a'] == 'site'}
	<ul class="list list-unstyled">
		{data func="site_article" cid=$cid return="true" assign="result"}
			{loop $result['list'] $row}
			<li>
				<a href="{$row['linkurl']}">
					<div class="title">{php echo cutstr($row['title'],20,1);}</div>
					<div class="createtime">{php echo date('Y-m-d H:i:s', $row['createtime'])}</div>
				</a>
			</li>
			{/loop}
	</ul>
	{/if}
	<!-- 该分类下文章-start -->
</div>
{template 'footer'}